package klochkov.snake.model;

import klochkov.snake.common.*;

/**
 * Represent part of entity, can occupy one game field's cell
 * 
 * @author Dmitry_Klochkov
 * 
 */
public class EntityCell {
	private final CellType cellType;
	private final Entity owner;
	private int x;
	private int y;

	public EntityCell(Entity owner, CellType cellType) {
		this.cellType = cellType;
		this.owner = owner;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public CellType getCellType() {
		return cellType;
	}
	
	
}
